using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmChgSpouse")]
    public class ChgSpouse
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "ChgSpouseId", ResourceType = typeof(Resources.ChgSpousesResource))]
        public int ChgSpouseId { get; set; }

		[ForeignKey("ChgReq")]
		[DataMember, Display(Name = "ChgReqId", ResourceType = typeof(Resources.ChgSpousesResource))]
        public Nullable<int> ChgReqId { get; set; }

		[ForeignKey("Spouse")]
		[DataMember, Display(Name = "SpouseId", ResourceType = typeof(Resources.ChgSpousesResource))]
        public Nullable<int> SpouseId { get; set; }

		[ForeignKey("NamePrefix")]
		[DataMember, Display(Name = "NamePrefixId", ResourceType = typeof(Resources.ChgSpousesResource))]
        public Nullable<int> NamePrefixId { get; set; }

		[DataMember, Display(Name = "SpouseName", ResourceType = typeof(Resources.ChgSpousesResource))]
        public string SpouseName { get; set; }

		[DataMember, Display(Name = "SpouseLastName", ResourceType = typeof(Resources.ChgSpousesResource))]
        public string SpouseLastName { get; set; }

		[DataMember, Display(Name = "EarningStatus", ResourceType = typeof(Resources.ChgSpousesResource))]
        public string EarningStatus { get; set; }

		[DataMember, Display(Name = "SpouseStatus", ResourceType = typeof(Resources.ChgSpousesResource))]
        public string SpouseStatus { get; set; }

		[DataMember, Display(Name = "Citizen", ResourceType = typeof(Resources.ChgSpousesResource))]
        public string Citizen { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.ChgSpousesResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.ChgSpousesResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.ChgSpousesResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.ChgSpousesResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.ChgSpousesResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        public virtual HRM.ChgRequest ChgReq { get; set; }

		public virtual ChgSpouse Spouse { get; set; }

		public virtual MasNamePrefix NamePrefix { get; set; }

    }
}